package com.csvw.skr.newTask.entity.inspection;

import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2016/12/7.
 */
@Entity
@Table(name = "csvw_skr_task_inspection_plan_draft")
public class InspectionPlanDraft {
    /**
     * 店头点检计划的ID， inspectionId_小区的ID_当前日期（年月日时分秒）
     */
    @Id
    @Column(name = "pk_id", length = 50)
    private String id;

    /**
     * 店头点检计划的名称
     */
    @Column( length = 50)
    private String name;

    /**
     * 店头点检计划的描述
     */
    private String description;

    /**
     * 店头点检计划的开始时间
     */
    private Date startTime;

    /**
     * 店头点检计划的结束时间
     */
    private Date endTime;

    /**
     * 点检任务ids
     */
    private String assignments;

    /**
     * 大区编号s
     */
    @Column(length = 200)
    private String rbo;

    /**
     * 商务处编号s
     */
    @Type(type="text")
    private String commercial;

    /**
     * 小区编号
     */
    @Type(type="text")
    private String area;
    /**
     * 经销商codes
     */
    @Type(type="text")
    private String dealer;

    /**
     * 点检计划图片
     */
    private String pics;

    /**
     * 店头点检任务发布者组织
     */
    @Column(length = 50)
    private String organization;

    /**
     * 店头点检任务发布者Id
     */
    @Column(length = 50)
    private String publisher;

    /**
     * 售前店访计划的流程状态， 此处只有11和21状态， 21状态后，点检计划会具体到经销商
     * 11   草稿
     * 21   待填写
     */
    @Column(nullable=false, columnDefinition="int default 11")
    private int status;

    /**
     * 数据是否有效
     */
    @Column(nullable=false, columnDefinition="bit default 1")
    private boolean active;

    /**
     * 数据创建时间
     */
    private Date created;

    /**
     * 数据更新时间
     */
    private Date updated;

    /**
     * 例会纪要文件IDs
     */
    private String files;

    /**
     * 1.businessManager 商务经理（107）
     * 2.marketingManager 市场经理（112）
     * 3.valueAdderBusinessManager 新业务经理（115）
     * 4.keyCustomerManager 关键客户经理（111）
     */
    private int receiverType;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAssignments() {
        return assignments;
    }

    public void setAssignments(String assignments) {
        this.assignments = assignments;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getStatus() {
        return status;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public String getRbo() {
        return rbo;
    }

    public void setRbo(String rbo) {
        this.rbo = rbo;
    }

    public String getCommercial() {
        return commercial;
    }

    public void setCommercial(String commercial) {
        this.commercial = commercial;
    }

    public String getFiles() {
        return files;
    }

    public void setFiles(String files) {
        this.files = files;
    }

    public int getReceiverType() {
        return receiverType;
    }

    public void setReceiverType(int receiverType) {
        this.receiverType = receiverType;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }
}
